<template>
	<div class="grand-child">
		<h3>孙组件</h3>
		<h4>{{ $attrs }}</h4>
		<button @click="updateA(2)">点我更新A</button>
	</div>
</template>

<script setup lang="ts" name="GrandChild">
defineProps(['a', 'updateA'])
</script>

<style scoped>
.grand-child {
	margin-top: 20px;
	background-color: orange;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px black;
}
</style>